std::forward_list::remove_if
From Cppreference
< cpp | container | forward list
| template< class UnaryPredicate >
void remove_if( UnaryPredicate p ); | (C++0x feature) | |
Removes all elements for which predicate p returns true from the container.
Contents |
Parameters
| p | - | unary predicate which returns true if the element should be removed. The signature of the predicate function should be equivalent to the following:
The signature does not need to have const &, but the function must not modify the objects passed to it. | |||||||||
Return value
(none)
Example
| This section is incomplete |
Complexity
linear in the size of the container
See also
| removes elements with specific value (public member function) | |